//
//  ParametersVCO.h
//  CocoaSynth
//
//  Created by Thomas Dupont on 21/02/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "ParametersModule.h"

@class ModuleVCOViewController;

@interface ParametersVCO : NSViewController<ParametersModule> {
	IBOutlet NSSlider* rangeSlider;
	IBOutlet NSSlider* frequencySlider;
	IBOutlet NSSlider* amountSlider;
	IBOutlet NSTextField* rangeText;
	IBOutlet NSTextField* frequencyText;
	IBOutlet NSTextField* amountText;
	IBOutlet NSTextField* resultText;
	float range;
	float frequency;
	float amount;
	ModuleVCOViewController* module;
}

@property (assign) NSSlider* rangeSlider;
@property (assign) NSSlider* frequencySlider;
@property (assign) NSSlider* amountSlider;
@property (assign) NSTextField* rangeText;
@property (assign) NSTextField* frequencyText;
@property (assign) NSTextField* amountText;
@property (assign) NSTextField* resultText;
@property (assign) ModuleVCOViewController* module;

- (IBAction)rangeChange:(id)sender;
- (IBAction)frequencyChange:(id)sender;
- (IBAction)amountChange:(id)sender;
- (void)load;
- (void)refreshResult;

@end
